<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>


<!DOCTYPE HTML>
<html>
  <head>
	
	<title>凯盛项目管理系统</title>
	<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" />
	<script type="text/javascript" src="js/jquery.js"></script>
	<style type="text/css">
		body{
			background-image:url(img/bb.jpg);
			background-repeat:repeat-x;
		}
	</style>
</head>
<body class="body">
	<%@ include file="include/main-top.jsp" %>
	
	<div class="container">
	  <div class="row">
		<div class="span9">
			<form class="form-horizontal" action="savaaddfiles.jspx?projectid=<%=session.getAttribute("projectid")%>&employeeid=<%=session.getAttribute("employeeid")%>" method="post">

        <fieldset>
          <legend>创建文件夹</legend>
          <div id="msg" class="alert alert-error fade in" style="display:none" >
		       <a href="#" data-dismiss="alert" class="close">×</a>
		       <strong>error!文件夹名字不能为空!</strong>
		   </div>
		   <c:if test="${param.state == '20001' }">
			<div id="addcontact" class="alert alert-info fade in" >
	            <a href="#" data-dismiss="alert" class="close">×</a>
	            <strong>恭喜您,文件夹创建成功!</strong>
	        </div>
		</c:if>
        	
          
          <div class="control-group">
            <label class="control-label" for="input01">文件夹名称</label>
            <div class="controls">
              <input name="name" id="name" type="text" class="span5" id="input01" x-webkit-speech="undefined">
              <p class="help-block">In addition to freeform text, any HTML5 text-based input appears like so.</p>

            </div>
          </div>
		<div class="form-actions">
            <button id="loginbtn" type="submit" class="btn btn-primary">保存</button>
            <a class="btn" href = "file.jspx?projectid=${ep.project.id}&employeeid=${ep.employee.id}">返回</a>
          </div>
        </fieldset>
        <script type="text/javascript">
		$(document).ready(function(){
		
			$('#loginbtn').click(function(){
				if($('#name').val() == "" || $('#name').val() == null){
					$('#msg').show();
					$('#name').focus();
					return false;
				}
			});
			$('#name').keydown(function(){
				$('#msg').hide();
			});
			
			$('#loginbtn').click(function(){
				$('loginbtn').submit();
			});
			
		});
	
	</script>
	
	
      </form>          
          	
		</div>
		<div class="span3">

			
		</div>
	  </div>
	</div>
</body>
</html>
